package exercise;

public class Main {


    private static void testMessageBox(Manager manager){
        MessageBox messageBox = new MessageBox('*');
        manager.register("warning box", messageBox);

        Product product = manager.create("warning box");
        product.use("Hello, world");
    }

    private static void testUnderlineBox(Manager manager){
        UnderlineBox underlineBox = new UnderlineBox('~');
        manager.register("strong message", underlineBox);

        Product product = manager.create("strong message");
        product.use("Hello, world");

    }

    public static void main(String[] args) {
        Manager manager = new Manager();

        testUnderlineBox(manager);
        testMessageBox(manager);
    }
}
